
using NodeCanvas.Framework;
using UnityEngine;
using Yoozoo.Gameplay.Liberty.AI.Node;

namespace com.yoozoo.gta
{
    public class NavMeshMovement : AIBaseNode
    {
        public BBParameter<float> speed = 1;
        protected override void PreOnExecute()
        {
            base.PreOnExecute();
            if (!speed.isNoneOrNull)
            {
                SetMaxSpeed(speed.value);
            }
        }

        protected bool HasArrived()
        {
            return _entity.seeker.ReachedEndOfPath();
        }

        public override void SetDestination(Vector3 destination)
        {
            base.SetDestination(destination);
        }

        public override void StopAISeeker()
        {
            base.StopAISeeker();
        }
    }
}